<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>孕育宝典 - 首页</title>
        <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
        <style>
            body {
                font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
                background-color: #f5f5f5;
                color: #333333;
                margin: 0;
                padding: 0;
            }
            .device-container {
                width: 390px;
                height: 844px;
                overflow: hidden;
                position: relative;
                background-color: white;
            }
            .status-bar {
                height: 44px;
                background-color: #ffffff;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 20px;
                font-size: 14px;
                font-weight: 600;
            }
            .nav-bar {
                height: 60px;
                background-color: #ffffff;
                position: absolute;
                bottom: 0;
                width: 100%;
                display: flex;
                justify-content: space-around;
                align-items: center;
                border-top: 1px solid #f5f5f5;
            }
            .nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                color: #666666;
                font-size: 10px;
            }
            .nav-item.active {
                color: #ff9fb5;
            }
            .main-content {
                height: calc(844px - 44px - 60px);
                overflow-y: auto;
                background-color: #f5f5f5;
            }
            .status-switch {
                background-color: #ffffff;
                border-radius: 16px;
                padding: 4px;
                display: flex;
                justify-content: space-between;
                margin: 15px;
            }
            .status-btn {
                padding: 8px 16px;
                border-radius: 12px;
                font-size: 14px;
                font-weight: 500;
                text-align: center;
                flex: 1;
            }
            .status-btn.active {
                background-color: #ff9fb5;
                color: white;
            }
            .feature-card {
                background-color: white;
                border-radius: 16px;
                padding: 16px;
                margin-bottom: 12px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .feature-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
                margin-top: 12px;
            }
            .feature-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 12px 8px;
                background-color: #fff8f9;
                border-radius: 12px;
            }
            .feature-icon {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-color: #ffd6e0;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-bottom: 8px;
                color: #ff6b8b;
            }
            .article-card {
                display: flex;
                background-color: white;
                border-radius: 12px;
                overflow: hidden;
                margin-bottom: 12px;
            }
            .article-img {
                width: 100px;
                height: 100px;
                object-fit: cover;
            }
            .article-content {
                padding: 12px;
                flex: 1;
            }
            .article-tag {
                display: inline-block;
                padding: 2px 8px;
                background-color: #ffd6e0;
                color: #ff6b8b;
                border-radius: 4px;
                font-size: 10px;
                margin-bottom: 6px;
            }
            .notification-dot {
                width: 8px;
                height: 8px;
                background-color: #ff6b8b;
                border-radius: 50%;
                position: absolute;
                top: 0;
                right: 0;
            }
            .user-status {
                display: flex;
                align-items: center;
                background-color: #ffffff;
                border-radius: 16px;
                padding: 16px;
                margin: 15px 15px 0;
            }
            .user-avatar {
                width: 50px;
                height: 50px;
                border-radius: 50%;
                object-fit: cover;
                margin-right: 12px;
                border: 2px solid #ffd6e0;
            }
            .cycle-info {
                margin-top: 8px;
                padding: 6px 12px;
                background-color: #fff8f9;
                border-radius: 8px;
                font-size: 12px;
                color: #ff6b8b;
            }
        </style>
    </head>
    <body>
        <div class="device-container">
            <!-- iOS状态栏 -->
            <div class="status-bar">
                <span>9:41</span>
                <div class="flex items-center">
                    <i class="fas fa-signal mr-1"></i>
                    <i class="fas fa-wifi mr-1"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            </div>

            <!-- 主内容区 -->
            <div class="main-content">
                <!-- 用户状态展示 -->
                <div class="user-status">
                    <img
                        src="https://images.unsplash.com/photo-1580489944761-15a19d654956?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1061&q=80"
                        alt="用户头像"
                        class="user-avatar"
                    />
                    <div class="flex-1">
                        <div class="flex justify-between items-center">
                            <div>
                                <div class="text-base font-medium">刘小红，你好！</div>
                                <div class="text-xs text-gray-500">备孕期 · 第3个月</div>
                            </div>
                            <div class="w-8 h-8 bg-pink-100 rounded-full flex items-center justify-center">
                                <i class="fas fa-bell text-pink-400"></i>
                            </div>
                        </div>
                        <div class="cycle-info">
                            <i class="fas fa-calendar-day mr-1"></i>
                            距离下次经期还有 <span class="font-semibold">7天</span>
                        </div>
                    </div>
                </div>

                <!-- 状态切换 -->
                <div class="status-switch">
                    <div class="status-btn active">备孕期</div>
                    <div class="status-btn">孕期</div>
                    <div class="status-btn">产后</div>
                </div>

                <!-- 经期与排卵管理 -->
                <div class="mx-4 mt-5">
                    <div class="flex justify-between items-center mb-2">
                        <h2 class="text-lg font-medium">经期与排卵管理</h2>
                        <span class="text-xs text-gray-400">更多 <i class="fas fa-chevron-right"></i></span>
                    </div>
                    <div class="feature-card">
                        <div class="feature-grid">
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-calendar-alt"></i>
                                </div>
                                <div class="text-xs text-center">经期日历</div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-venus"></i>
                                </div>
                                <div class="text-xs text-center">排卵预测</div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-temperature-high"></i>
                                </div>
                                <div class="text-xs text-center">基础体温</div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-baby"></i>
                                </div>
                                <div class="text-xs text-center">备孕建议</div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-clipboard-list"></i>
                                </div>
                                <div class="text-xs text-center">记录症状</div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-chart-line"></i>
                                </div>
                                <div class="text-xs text-center">数据统计</div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 健康行为与饮食指导 -->
                <div class="mx-4 mt-5">
                    <div class="flex justify-between items-center mb-2">
                        <h2 class="text-lg font-medium">健康行为与饮食指导</h2>
                        <span class="text-xs text-gray-400">更多 <i class="fas fa-chevron-right"></i></span>
                    </div>
                    <div class="feature-card">
                        <div class="feature-grid">
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-utensils"></i>
                                </div>
                                <div class="text-xs text-center">饮食指南</div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-walking"></i>
                                </div>
                                <div class="text-xs text-center">行为指南</div>
                            </div>
                            <div class="feature-item">
                                <div class="feature-icon">
                                    <i class="fas fa-apple-alt"></i>
                                </div>
                                <div class="text-xs text-center">营养分析</div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 备孕知识推荐 -->
                <div class="mx-4 mt-5 mb-4">
                    <div class="flex justify-between items-center mb-2">
                        <h2 class="text-lg font-medium">为你推荐</h2>
                        <span class="text-xs text-gray-400">更多 <i class="fas fa-chevron-right"></i></span>
                    </div>

                    <div class="article-card">
                        <img
                            src="https://images.unsplash.com/photo-1493770348161-369560ae357d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
                            alt="食物图片"
                            class="article-img"
                        />
                        <div class="article-content">
                            <div class="article-tag">营养建议</div>
                            <h3 class="text-sm font-medium mb-1">备孕期间最需要补充的7种营养素</h3>
                            <p class="text-xs text-gray-500 mb-2 line-clamp-2">
                                叶酸、铁、钙、维生素D等营养素对备孕女性至关重要，本文详细介绍如何科学补充...
                            </p>
                            <div class="text-xs text-gray-400">2,534人已读</div>
                        </div>
                    </div>

                    <div class="article-card">
                        <img
                            src="https://images.unsplash.com/photo-1544161513-0179fe746fd5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
                            alt="运动图片"
                            class="article-img"
                        />
                        <div class="article-content">
                            <div class="article-tag">行为建议</div>
                            <h3 class="text-sm font-medium mb-1">备孕期最适合的5种运动方式</h3>
                            <p class="text-xs text-gray-500 mb-2 line-clamp-2">
                                适量运动有助于提高受孕几率，瑜伽、游泳、快走等运动特别适合备孕女性...
                            </p>
                            <div class="text-xs text-gray-400">1,845人已读</div>
                        </div>
                    </div>

                    <div class="article-card">
                        <img
                            src="https://images.unsplash.com/photo-1576473086770-6635c5e542f2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
                            alt="心理图片"
                            class="article-img"
                        />
                        <div class="article-content">
                            <div class="article-tag">心理调适</div>
                            <h3 class="text-sm font-medium mb-1">备孕期焦虑情绪如何调节</h3>
                            <p class="text-xs text-gray-500 mb-2 line-clamp-2">
                                长时间备孕未果容易产生焦虑，学会这些心理调适技巧，保持轻松心态...
                            </p>
                            <div class="text-xs text-gray-400">3,127人已读</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 底部导航栏 -->
            <div class="nav-bar">
                <div class="nav-item active">
                    <i class="fas fa-home text-xl mb-1"></i>
                    <span>首页</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-notes-medical text-xl mb-1"></i>
                    <span>健康记录</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-book-medical text-xl mb-1"></i>
                    <span>知识库</span>
                </div>
                <div class="nav-item relative">
                    <div class="notification-dot"></div>
                    <i class="fas fa-user-friends text-xl mb-1"></i>
                    <span>伴侣空间</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user text-xl mb-1"></i>
                    <span>我的</span>
                </div>
            </div>
        </div>
    </body>
</html>
